﻿using BookStore.Solution.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookStore.Solution.BLL
{
    public class RoleManager
    {
        public List<Role> GetAllRole()
        {
            using (BookStoreEntities ctx = new BookStoreEntities())
            {
                List<Role> roles = (from a in ctx.Roles select a).ToList<Role>();
                return roles;
            }
        }
    }
}
